<template>
  <div class="content1">
    <div class="title">
      <div>近期疫情分布</div>
      <span>截至北京时间 {{ modifyTime.modifyTime | time }}</span>
    </div>
    <router-link to="/area">
      <div class="risk-jump">
        <div class="risk-jump_one">
          <span
            >高风险地区
            <em style="color: #f74c31">{{ DangerCount.highDangerCount }}</em> 个
            中风险地区
            <em style="color: #fdc146">{{ DangerCount.midDangerCount }}</em>
            个</span
          >
          <div>
            <span>查看全部</span>
            <img src="../../../assets/images/箭头.png" width="8" alt="" />
          </div>
        </div>
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  props: ["modifyTime", "DangerCount"],
};
</script>

<style lang="less" scoped>
.exel {
  padding: 0.4rem 0.2rem 0 0.2rem;
  font-size: 12px;
  .exel_head {
    width: 100%;
    height: 32px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    p {
      width: 18%;
      background-color: aqua;
      text-align: center;
      font-weight: bold;
      line-height: 32px;
      border-right: 0.005rem solid #fff;
    }
    p:nth-child(1),
    p:nth-child(5) {
      background-color: #e3e7f3;
    }
    p:nth-child(2) {
      background-color: #e69a8d;
    }
    p:nth-child(3) {
      background-color: #f3bab0;
    }
    p:nth-child(4) {
      background-color: #b4c0d5;
    }
    p:nth-child(6) {
      background-color: #e3e7f3;
      width: 12%;
    }
  }
}
.title {
  padding: 0 0.2rem 0 0.2rem;
  font-size: 17px;
  div {
    padding-left: 10px;
  }
  span {
    font-size: 12px;
    color: #999;
  }
}
.risk-jump {
  padding: 0 0.2rem 0 0.2rem;
  .risk-jump_one {
    padding: 0 0.2rem 0 0.2rem;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eeeeee;
    span {
      height: 40px;
      line-height: 40px;
      em {
        font-size: 16px;
        font-weight: bold;
      }
    }
  }
  div {
    font-size: 10px;
    color: #4169e2;
  }
}
</style>
